package com.itheima.day14.day14work4;

import java.util.concurrent.CountDownLatch;

public class Childer3 implements Runnable{
    private  CountDownLatch cdl;
    public Childer3(CountDownLatch cdl) {
        this.cdl=cdl;
    }

    @Override
    public void run() {
        for (int i = 0; i < 18; i++) {
            System.out.println(Thread.currentThread().getName()+"吃饺子");
        }
        cdl.countDown();
    }
}
